﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="CRM.Web.PhoneAreaManage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

	
    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="电话区域列表" ></asp:Label></div>
    </div> 
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table> 
    <div id="divMain" >    
    
    <div style="width: 100%">
        <div class="listdiv">
            <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                <tr>
                    <td class="title"><div  class="nowrap">
                        区号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtAREANO" runat="server" CssClass="txt" MaxLength="10" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        号段:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtSECTIONNO" runat="server" CssClass="txt" MaxLength="10" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        运营商:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtOPERATORS" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        地区类型:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlPHONETYPE" runat="server" CssClass="ddl">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="title"><div  class="nowrap">
                        省:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtPROVINCE" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title"><div  class="nowrap">
                        市:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCITY" runat="server" CssClass="txt" MaxLength="64" Rows="3" TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                    </td>
                    <td class="content">
                    </td>
                    <td class="title">
                        &nbsp;
                    </td>
                    <td class="content">
                        <div style="width: 100px;" class="nowrap">
                            <asp:Button ID="btnSearch" runat="server" Text="查询" CommandName="Search" CssClass="btn title_cx"
                                OnClick="btnSearch_Click" /></div>
                    </td>
                </tr>
            </table>
            <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" 
                AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" 
                OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="True" 
                AllowSorting="True"  SortExpressionValue="AUTOID"  
                SortDirectionValue="DESC" >
                <Columns>
			        <asp:TemplateField HeaderText="编号" SortExpression="AUTOID">
                        <ItemTemplate>
                            <asp:HyperLink id="hlModifyAUTOID" runat="server" NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>' Text='<%# Bind("AUTOID") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="PHONETYPE" HeaderText="地区类型" SortExpression="PHONETYPE">
                    </asp:BoundField>
			    <asp:BoundField DataField="AREANO" HeaderText="区号"  SortExpression="AREANO" />
			    <asp:BoundField DataField="SECTIONNO" HeaderText="号段"  SortExpression="SECTIONNO" />
			    <asp:BoundField DataField="PROVINCE" HeaderText="省"  SortExpression="PROVINCE" />
			    <asp:BoundField DataField="CITY" HeaderText="市"  SortExpression="CITY" />
			    <asp:BoundField DataField="CARDTYPE" HeaderText="卡型"  SortExpression="CARDTYPE" />
			    <asp:BoundField DataField="ZIP" HeaderText="邮编"  SortExpression="ZIP" />
			    <asp:BoundField DataField="OPERATORS" HeaderText="运营商"  SortExpression="OPERATORS" />
			    <asp:BoundField DataField="CLASSIFY" HeaderText="归类"  SortExpression="CLASSIFY" Visible="False" />
			    <asp:BoundField DataField="COUNTRY" HeaderText="国家"  SortExpression="COUNTRY"  Visible="False" />
			    <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME"  Visible="False" />
			    <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID" Visible="False"  />
			    <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE"  Visible="False" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID"  Visible="False" />
			    <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE"  Visible="False" />
			    <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME" Visible="False" />
			    <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK" Visible="False" />
			    <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <itemtemplate>
                    <div style="white-space: nowrap;">
                    <asp:HyperLink id="hlModify" runat="server" NavigateUrl='<%# Eval("AUTOID", ModifyUrl) %>'>详细</asp:HyperLink>
                    <asp:LinkButton id="lbtnDelete" runat="server" Text="删除" CommandName="Delete" CausesValidation="False" OnClientClick="return confirm('您确认要删除此条记录吗？');"></asp:LinkButton>            
                    </div>
				    </itemtemplate>
                    <headerstyle width="90px" />
                </asp:TemplateField>
                </Columns>	
                <RowStyle CssClass="row" />
                <AlternatingRowStyle CssClass="row2" />
                <HeaderStyle CssClass="header" />	
                <PagerStyle CssClass="pager" />	
            </dp:WebGridView>
        </div>
    </div>
    </div>
    </form>
</body>
</html>
